﻿<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="RegionList.aspx.cs" Inherits="MockPrjTeam1.Pages.Views.RegionList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Resources/CSS/ddsmoothmenu.css" />
    <script type="text/javascript" src="../../Resources/JS/ddsmoothmenu.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="templatemo_main">
    <table width="100%">
        <tr height="50">
            <td colspan="2" style="font-size:large; color:green">Trust Region List</td>    
        </tr>
        <tr>
            <td width="60%">
                <asp:LinkButton ID="link1" ForeColor="Blue" runat="server" Text="All" CssClass="style1" OnClick="GetAll"/>&nbsp;|&nbsp;
                <asp:LinkButton ID="link2" ForeColor="Blue" runat="server" Text="0-9" CssClass="style1" OnClick="Filter09"/>&nbsp;|&nbsp;
                <asp:LinkButton ID="link3" ForeColor="Blue" runat="server" Text="A B C D E" CssClass="style1" OnClick="FilterAE"/>&nbsp;|&nbsp;
                <asp:LinkButton ID="link4" ForeColor="Blue" runat="server" Text="F G H I J" CssClass="style1" OnClick="FilterFJ"/>&nbsp;|&nbsp;
                <asp:LinkButton ID="link5" ForeColor="Blue" runat="server" Text="K L M N" CssClass="style1" OnClick="FilterKN"/>&nbsp;|&nbsp;
                <asp:LinkButton ID="link6" ForeColor="Blue" runat="server" Text="O P Q R" CssClass="style1" OnClick="FilterOR"/>&nbsp;|&nbsp;
                <asp:LinkButton ID="link7" ForeColor="Blue" runat="server" Text="S T U V" CssClass="style1" OnClick="FilterSV"/>&nbsp;|&nbsp;
                <asp:LinkButton ID="link8" ForeColor="Blue" runat="server" Text="W X Y Z" CssClass="style1" OnClick="FilterWZ"/>&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
            <td align="right">
                <asp:Button ID="btnCreate" runat="server" Text="Create" PostBackUrl="../Forms/RegionDetail.aspx"/>&nbsp;
                <asp:CheckBox ID="cbInActive" runat="server" Text="Include In-active" OnCheckedChanged="GetAll" AutoPostBack="true"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            <asp:GridView ID="grvRegion" runat="server" Width="100%" OnPageIndexChanging="PageChanging"
                AutoGenerateColumns="False"                 
                ShowHeaderWhenEmpty="true" 
                EnableModelValidation="True"
                AllowPaging="True" PageSize ="5" > 
                <Columns>
                    <asp:HyperLinkField HeaderText="Trust Region Name" DataTextField="Name" 
                        ControlStyle-ForeColor="Blue" 
                        DataNavigateUrlFields="ID" 
                        DataNavigateUrlFormatString="../Forms/RegionDetail.aspx?id={0}" 
                        HeaderStyle-Width="25%" HeaderStyle-Height="20pt">
                    </asp:HyperLinkField>
                    <asp:BoundField HeaderText="Description" DataField="Description" HeaderStyle-Width="40%" />
                    <asp:BoundField HeaderText="Nation/Country" DataField="Country" HeaderStyle-Width="25%"/>
                    <asp:BoundField HeaderText="Is Active?" DataField="Active"/>
                </Columns>
            </asp:GridView>
            </td>
        </tr>
    </table>
</div>
</asp:Content>
